package com.hmall.common.client.utils;


public class UserThreadLocal {
    private static final ThreadLocal<Long> USERTHREADLOCAL = new ThreadLocal<>();

    public static void set(Long userId){
        USERTHREADLOCAL.set(userId);
    }

    public static Long get(){
        return USERTHREADLOCAL.get();
    }

    public static void remove(){
        USERTHREADLOCAL.remove();
    }
}
